package cn.good.yan.service;

import cn.good.yan.entity.Account;
import com.baomidou.mybatisplus.extension.service.IService;
import io.seata.rm.tcc.api.BusinessActionContext;
import io.seata.rm.tcc.api.BusinessActionContextParameter;
import io.seata.rm.tcc.api.LocalTCC;
import io.seata.rm.tcc.api.TwoPhaseBusinessAction;

import java.math.BigDecimal;

/**
 * 账户服务
 *
 * @author shengren.yan
 * @create 2024-02-22
 */
public interface AccountService extends IService<Account> {

    // 扣除 该账户的 金额
    void decrease(Long userId, BigDecimal money);


}
